package cn.xz.tipsum.base

import android.app.Application
import android.content.Context
import com.tencent.bugly.crashreport.CrashReport

class BaseApplication : Application() {

    companion object {
        var  mContext: Application? = null
        fun getContext(): Context{
            return mContext!!
        }
    }

    override fun onCreate() {
        super.onCreate()
        mContext = this
        //初始化Bugly
        initBug()
    }


    private fun initBug(){
        CrashReport.initCrashReport(applicationContext, "38b33cc217", false);
    }
}

